package org.qcit.com.myapplication.ui

import android.os.Bundle
import android.os.Environment
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import org.lib93.com.libSkin.SkinManager
import org.qcit.com.myapplication.R

class TestActivity: AppCompatActivity(){
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_test)
    }
    fun change(view: View?) {
        //换肤，收包裹，皮肤包是独立的apk包，可以来自网络下载
        //  SkinManager.getInstance().loadSkin("/data/data/com.enjoy.skin/skin/skin-debug.apk");
        SkinManager.Companion.getInstance(application)
            .loadSkin("/data/data/org.qcit.com.myapplication/debug.apk")//包含相同资源名称的值不同的文件 apk，即 就值t_window_bg =2334  新t_window_bg =456
    }

    fun restore(view: View?) {
        SkinManager.Companion.getInstance(application).loadSkin(null)
    }
}